<?php

	$cb = $_GET["cb"];
	$url = $_GET["url"];
	require_once "jssdk.php";
	$jssdk = new JSSDK("wxca6cc5eb15e706d5", "e3b46505fd8a28bfe101efb95d7fdc24",$url);	
	$signPackage = $jssdk->getSignPackage();
//echo $cb."(".json_encode($signPackage).")";
//echo "$signPackage ";
//echo $url;
echo "$cb(".json_encode($signPackage).")";
//echo json_encode($signPackage,true);
?>